package featureExtraction;

import java.awt.image.BufferedImage;

public abstract class Token {

	private Integer x;
	private Integer y;
	private Integer width;
	private Integer height;
//	private boolean hasNote;

	public Token(int x, int width, int y, int height)
	{
		this(x, width, y, height, false);
	}
	
	public Token(int x, int width, int y, int height, boolean hasNote)
	{
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
//		this.hasNote = hasNote;
	}

	public int getX() {
		return x;
	}

	public int getWidth() {
		return width;
	}

	public int getY() {
		return y;
	}

	public int getHeight() {
		return height;
	}

	/**
	 * Retrieves all Subtokens within the Token for further processing
	 * @param image
	 * @return
	 */
	public void processToken(BufferedImage image, TokenDetection detector) {
	}

}